|
INSTANCE OBJECT
This command will create an instance copy of the object.
INSTANCE OBJECT Object Number, Source Object
Object Number
Integer
The new object number
Source Object
Integer
The object number we are copying
This command does not return a value.
Unlike CLONE OBJECT, this instance will share most of the original objects data and be dependent on the original object remaining in existence to hold such data. Instanced objects do have the ability to hide/show both their limbs and hide/show the object, independent of the original object. This command is ideally suited to copying large numbers of primarily static objects such as trees and rocks where the original model data is to remaing largely unchanged.
sync on : sync rate 60 : hide mouse:cls 0
autocam off
ObjectNumber=1
SecondObject=2
make object cone ObjectNumber,10
xrotate object ObjectNumber,90
fix object pivot ObjectNumber
color object ObjectNumber,rgb(0,255,0)
position object ObjectNumber, 0,0,0
instance object SecondObject,ObjectNumber
color object SecondObject,rgb(255,0,0)
position object SecondObject,25,0,25
while mouseclick()=0
BASIC3D Commands Menu
Index
|